<?php
include "../function.php";
include "../include/admin.class.php";
$admin = new Admin();
$error = '';

if(isset($_POST['submit'])){
	if($admin->checkUser($_POST['user'],$_POST['pwd'])){
		echo "<script type='text/javascript'>location.href='home.php';</script>";
	}else{
		$error = '<div class="notification information png_bg"><div>用户名或密码错误！</div></div>';
	}
}
?>